/**  When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const websetManageRouter = {
  path: '/adminh5/websetmanage',
  component: Layout,
  redirect: '/adminh5/websetmanage/admin/list',
  name: 'websetManage',
  alwaysShow: true,
  meta: {
    title: i18n.t('System'),
    icon: 'example'
  },
  children: [
    {
      path: 'webconfig',
      component: () => import('@/views/adminh5/websetmanage/webconfig/list'),
      name: 'WebConfig',
      meta: { title: i18n.t('ShopSetting'), icon: 'list' }
    },
    // {
    //   path: 'exchangerate',
    //   component: () => import('@/views/adminh5/websetmanage/exchangerate/list'),
    //   name: 'exchangerate',
    //   meta: { title: i18n.t('ExchangeRate'), icon: 'list' }
    // },
    {
      path: 'paytype',
      component: () => import('@/views/adminh5/websetmanage/paytype/list'),
      name: 'PaymentMethod',
      meta: { title: i18n.t('PaymentMethod'), icon: 'list' }
    },
    // {
    //   path: 'logistics',
    //   component: () => import('@/views/adminh5/websetmanage/logistics/list'),
    //   name: 'logistics',
    //   meta: { title: i18n.t('LogisticsType'), icon: 'list' }
    // },
    {
      path: 'price',
      component: () => import('@/views/adminh5/websetmanage/price'),
      name: 'price',
      meta: { title: i18n.t('price'), icon: 'list' }
    },
    {
      path: 'homemenu',
      component: () => import('@/views/adminh5/websetmanage/homemenuTree'),
      name: 'menu',
      meta: { title: i18n.t('menu'), icon: 'list' }
    }
  ]
}
export default websetManageRouter
